---
import LayoutHtml from "@layouts/LayoutHtml.astro";
import LayoutHead from "@layouts/LayoutHead.astro";
import LayoutHeardSeo from "@layouts/LayoutHeardSeo.astro";
import LayoutBody from "@layouts/LayoutBody.astro";
import CategoryMain from "@components/category/CategoryMain.astro";
import LayoutHeader from "@layouts/LayoutHeader.astro";
import CommonColumn from "@components/common/column/CommonColumn.astro";
---
<LayoutHtml>
  <th:block th:with="category=${@categoryTag.selectCmsCategoryById(categoryId,themeName)}">
  <LayoutHead>
    <th:block th:if="${category!=null}">
    <LayoutHeardSeo title="${category.remark+' - '+webConfig['oly.web.title']}"
      keywords="${category.keywords}"
      description="${category.description}">
    </LayoutHeardSeo>
    </th:block>
    <th:block th:unless="${category!=null}">
    <LayoutHeardSeo title="${'未找到 - '+webConfig['oly.web.title']}"
      keywords="${'未找到'}"
      description="${'未找到'}">
    </LayoutHeardSeo>
    </th:block>
  </LayoutHead>
  <LayoutBody>
    <LayoutHeader>
      <CommonColumn />
    </LayoutHeader>
    <CategoryMain />
  </LayoutBody>
  </th:block>
</LayoutHtml>
